package com.mdd.common.mapper.order;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.car.CarOrderDetail;
import com.mdd.common.entity.car.CarOrderInfoListed;
import com.mdd.common.entity.order.OrderDetail;
import com.mdd.common.entity.order.OrderInfo;
import com.mdd.common.entity.order.OrderList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 订单Mapper
 * @author LikeAdmin
 */
@Mapper
public interface OrderInfoMapper extends IBaseMapper<OrderInfo> {

    IPage<OrderList> orderPage(Page page,@Param("deptCode") String deptCode,@Param("orderType") Long orderType,@Param("orderSn") String orderSn,@Param("status") Integer status);

    IPage<CarOrderInfoListed> carOrderPage(Page page, @Param("params")Map params);


    OrderDetail orderDetailById(@Param("id") Long id);

    int countZeroDepositOrder(@Param("orderId") Long orderId,@Param("userId") Long userId);
    CarOrderDetail selectCarOrderDetailById(@Param("id") Long id);

}
